package com.daon.service;

import com.daon.common.ServerResponse;
import com.daon.param.SysRoleParam;
import com.daon.pojo.SysRole;
import com.daon.vo.SysRoleNodeVo;

import java.util.List;

/**
 * @Author 1daon
 * @EMAIL 532418116@qq.com
 * @Version 创建时间：2019/3/5 12:43 PM
 * @Modified By
 */
public interface ISysRoleService {

    List<SysRole> sysRoleListBySiteId();

    ServerResponse<SysRole> save(SysRoleParam sysPostParam);

    ServerResponse updateDeleteSysPostById(int id);

    ServerResponse update(SysRoleParam sysPostParam);

    SysRole getSysRoleById(int id);

    List<SysRoleNodeVo> getRoleNodeByRoleId(Integer siteId);

    ServerResponse auth(int siteId, int[] nodeIds);

    ServerResponse assignUserRole(int roleId, String userIds);
}
